<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>静态继承原理</title>
</head>
<body>
    <script>
        // function User(){}
        // User.site = "后盾人";
        // User.show = function(){
        //     console.log("静态方法show");
        // }

        // function Admin(){}

        // Admin.__proto__ = User;
        // console.log(Admin.site);
        // Admin.show();


        class User{
            static site = "后盾人";
            static show = function(){
                console.log("静态方法show");
            }
        }

        class Admin extends User{}

        console.log(Admin.site);
        Admin.show();
    </script>
</body>
</html>